package com.ruoyi.web.contact;

import com.ruoyi.rz.domain.AdmContacts01;
import com.ruoyi.rz.service.IAdmContactsService01;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/xingzheng/contacts11")
@DataSource(DataSourceType.SLAVE)
public class ContactsController1 extends BaseController {

    @Autowired
    private IAdmContactsService01 admContactsService;

  // @PreAuthorize("@ss.hasPermi('xingzheng:contacts:list')")
    @GetMapping("/list11")
    public TableDataInfo queryAllList(AdmContacts01 contacts)
    {
        startPage();
        List<AdmContacts01> list =admContactsService.list();
        //List<AdmContacts> list = admContactsService.queryAllList(contacts);
        return getDataTable(list);
    }
}
